# coding: utf-8
from django import forms

from recette.models import TYPE_CHOICES, Ingredient

class RechercheRecette(forms.Form):
    
    type = forms.ChoiceField(label="Type ",choices=TYPE_CHOICES)
    ingredients = forms.ModelMultipleChoiceField(label="Ingredients ",queryset=Ingredient.objects.all().order_by('titre'),required=False)
